package com.zyf.chapter01.practice.v3.util;

import com.zyf.chapter01.principle.practice.MetricsStorage;
import com.zyf.chapter01.principle.practice.RequestInfo;

/**
 * 事件监听
 */
public class EventListener {

    MetricsStorage metricsStorage;

    @Subscribe
    public void saveRequestInfo(RequestInfo requestInfo) {
        metricsStorage.saveRequestInfo(requestInfo);
    }
}
